package com.itheima.pattern.decorator

/**
 * @version v1.0
 * @ClassName: FastFood
 * @Description: 快餐类(抽象构件角色)
 * @Author: 黑马程序员
 */
abstract class FastFood {
    var price //价格
            = 0f
    open var desc //描述
            : String? = null

    constructor(price: Float, desc: String?) {
        this.price = price
        this.desc = desc
    }

    constructor() {}

    abstract fun cost(): Float
}